<?php
/**
 * Created by PhpStorm.
 * User: zhangyi
 * Date: 17/3/5
 * Time: 下午11:24
 */

use yii\widgets\ActiveForm;
use yii\helpers\Html;

?>
<div id="page-wrapper" style="min-height: 500px;">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header"><a href="javascript:history.back();" class="btn btn-primary">返回</a></h1>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="col-lg-4">
                <div class="form-group form-inline">
                    <label>ID</label>
                    <p class="help-block"><?= $model->id ?></p>
                </div>
                <div class="form-group form-inline">
                    <label>用户名</label>
                    <p class="help-block"><?= $model->username ?> </p>
                </div>
                <div class="form-group form-inline">
                    <label>QQ</label>
                    <p class="help-block"><?= $model->qq ?> </p>
                </div>
                <div class="form-group form-inline">
                    <label>电话</label>
                    <p class="help-block"><?= $model->mobile ?> </p>
                </div>

                <div class="form-group form-inline">
                    <label>用户类型</label>
                    <p class="help-block"> </p>
                </div>
                <div class="form-group form-inline">
                    <label>注册时间</label>
                    <p class="help-block"><?= date('Y-m-d H:i:s',$model->create_time) ?> </p>
                </div>

                <div class="form-group form-inline">
                    <label>渠道来源</label>
                    <p class="help-block"><?= $model->channel ?> </p>
                </div>

                <?php $form = ActiveForm::begin(['enableClientValidation'=>true]) ?>

                <?= $form->field($model, 'status')->radioList(['0'=>'禁止登录','1'=>'正常'],['separator'=>'&nbsp;&nbsp;&nbsp;&nbsp;']) ?>
                <?= $form->field($model, 'zhuangtai')->textInput() ?>

                <?= $form->field($model, 'note')->textarea() ?>

                <div class="form-group">
                    <?= Html::submitButton($model->isNewRecord ? '保存' : '保存', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
                </div>

                <?php ActiveForm::end() ?>
            </div>
        </div>
    </div>

</div>
